<template>
    <div>
      <!--密度输入方式1:常量输入-->
      <div>
        <el-form :model="liquidDensityData"
                 :rules="rules"
                 ref="liquidDensity"
                 label-width="100px"
                 class="demo-ruleForm">
          <el-form-item label="流体密度" prop="densityValue">
              P = <el-input size="mini" placeholder="A" style="width:60px" v-model.trim="liquidDensityData.densityPolynomial.x4"></el-input>
                 * T <sup>4</sup> +
                <el-input size="mini" placeholder="B" style="width:60px" v-model.trim="liquidDensityData.densityPolynomial.x3"></el-input>
                 * T <sup>3</sup> +
                <el-input size="mini" placeholder="C" style="width:60px" v-model.trim="liquidDensityData.densityPolynomial.x2"></el-input>
                 * T <sup>2</sup> +
                <el-input size="mini" placeholder="D" style="width:60px" v-model.trim="liquidDensityData.densityPolynomial.x1"></el-input>
                 * T +
                <el-input size="mini" placeholder="E" style="width:70px" v-model.trim="liquidDensityData.densityPolynomial.x0"></el-input>
          </el-form-item>
        </el-form>
      </div>
    </div>
</template>

<script>
  export default {
    name: "fluidDensityInputModel3",
    data(){
      return{
        liquidDensityData:JSON.parse(window.sessionStorage.getItem("liquidDensityData")),
        densityPolynomial:{
          x1:'',
          x2:'',
          x3:'',
          x4:'',
          x5:'',
          x0:'',
        },
        rules: {
          liquidDensityData: [
            { required: true, message: '请输入流体密度', trigger: 'blur' }
          ],
        },
      }
    },
    mounted() {
      console.log(this.liquidDensityData);
    },
    methods:{

    },
  }
</script>

<style>

</style>
